working on database methods to ease things up