Adds database support

Adds sqlite support