basic page module, added more database functionality