Modified database.yml for test DB
Fixed bug in dictionaries#id_mapping