Database now works