added db_conn.php and updated linkly class

added support for different hosts (other than hard coded localhost) and
also fixed clearing values