wraps population of database in methods