Added phpdocs and changed insert() to query() to use the NOW() in query