implemented variable capturing
database configured