Basic REST and SQL implementation