moved database to helper package