Improving scaffolld, making database compatible with sqlite