added primary_key default value of 'id'
added function find_by to find by a specific field