database operations in phtml file