Fixed the correct argument order for databases