Added a nfc generator, abstracted database connection , packing user data in JSON and retrieving a user's data