Database Logic

Local machine run only