Changed {$prefix} for _prefix_ to make it working in SQL without rewriting, did some changes to schema and created triggers and functions for finding proper room for a new or updated person, there are also some new views