add forms module
add database module
update views module to separate forms and db functions
minor style changes