reworked database into DatabaseHelper