Separate hmtl & php process from index_db.php