Updated datbase stuff