Add database and database tests