Fix database restrictions for oracle

 * fixes #120
 * fixes #119