Fixed the problem of database calls not executing.