adding database support (sqlite)