new probabilistic stuff, changes for storing extracted features in the database
changes for the recognition part. Might need to be REVERTED