Realize methods of database