first interaction with database