Added a exception that trow us a 0 value if db_connect doesn't work