removed online_days conversion to real, added expires_at function and remove payment_logs table