finished with Database part