with rspec specs for ApplicationDatabase model