Created functions within our database class