add database to complex_methodos