Abstracted out the database and made more generic