separeted methods for accessing database, read method to datareader, write method to datawriter