Fixed database calls.