works with ram_db