Prepare owncloud db