working has_many and belongs_to relations

also added the possibility to generate a list of models.
Added the pow_db_helper file to contain all common db utility functions.