pushing onto database working