Fixed log for queries on the db
Added some public methods for FieldFK
Updated database