implementation of all db interfaces