add database method