added more database things
database funcionality