trying to do the database thing