Database integration

First steps being taken
Data flow control

Database not yet integrated