The bimserver team provides a REST API and a java client library. You can communicate with either of those methods.
You cannot access the database directly without building a BerkelyDB connector but the api's interfaces should suffice (specifically the ServiceInterface and the LowLevelInterface)
Some helpful links:
BimServer -- Client Library and Server
BimServerGUI -- Useful GUI Plugin