Moving database stuff to Redbean ORM.