[ATM][DB] Add DAO interfaces and base implementation of it