add db connection

permitions problem (containig dir must be writable)