Improved backend, switched to SQL