some methods for working with db (connect, query)