updated to the db connection for mobile