Add sqlite database

Adds a sqlite database
You're raising the KeyError class here. Instead, raise an instance of KeyError with a descriptive error message, e.g. `raise KeyError("User {} not found".format(user_id)`