Database Execution

My database tries to get data from a database I made before there is any data. How do I make sure it doesn't do that until the user puts in data?

Replies

Just write out the db on install, with empty tables.