fix foreign key in AtomicBase module
refactoring of services/mocks (lvrug 2014-07-23)
moved database integration tests to spec/db_integration