Fixed bug, calling wrong DB instance.