File database and formatting
Fixed bug with database