first connection with database