In the login_details() method, why do you call mysql_query() with no parameters? That's going to do nothing but generate errors (and confusion, since it doesn't make any sense).
As for connecting to your DB, your DBAL class provides a method for doing just that.