added views for site management. Added tables to database.
Added function to dynamically add tables to database when needed.