created methods for DataBaseAccess class