Added calls to database