back to version that works with sqlite