added DAO upsert logic and a simple sql dump that can be used to populate a sample database