You'll need to pass the Context when instantiating the the Database class. Add a public constructor to the class Database:
public class Database {
private Context mContext;
public Database(Context context) {
mContext = context;
}
}
Then use mContext, passing "this" won't work as it's of type Database and it expects type Context, so that'll produce a compilation error.