Flag Database

Please do not delete this until I have finished. This is a work in progress. Give me just another day or two to finish.