Applying database. Adding consistency to the project