added database as resource
added plugins directory for configure.ac
test database file before start