Hey,
maybe this post of @jvillafanez here helps which seems to give some info how to connect ownCloud to an database: