How to use the database