Fixed PHP warning
Database layer fix