Form hook into db