Add init-database function
Return int's not floats
Alter daemon param to store boolean
Write to SQLite